import numpy as np
import matplotlib.pyplot as plt

# # 生成x_train数据
# x_train = np.array([1, 2, 3, 4, 5,])

# 生成从 1 到 5 步长为 0.01 的数据
x_train = np.arange(1, 10, 0.1)
# print("扩展后的数据：", x_train.tolist())

# 计算对应的y_train数据
y_train = 3 * np.sin(x_train) + 5 * np.cos(x_train)

print("x_train =", list(x_train))
print("y_train =", list(y_train))

# 绘制图形
plt.plot(x_train, y_train)

# 添加标题和标签
plt.title("Simple Plot")
plt.xlabel("X")
plt.ylabel("Y")

# 显示图形
plt.show()